﻿namespace Zinnia.Common.DTO.Imp
{
    /// <summary>
    /// 请求模型基类
    /// </summary>
    public class RequestModel : IRequestModel
    {

    }
    /// <summary>
    /// 分页请求模型
    /// </summary>
    public class GridRequestModel : IGridRequestModel
    {
        public virtual int page { get; set; }
        public virtual int size { get; set; }

        protected virtual int Page => page > 0 ? page : 1;
        protected virtual int Size => size >= 10 && size <= 100 ? size : 10;
    }
}
